//
//  EditTopView.m
//  QuickCure1
//
//  Created by apple on 2016/11/2.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "EditTopView.h"

@interface EditTopView ()

@property (weak, nonatomic) IBOutlet UIImageView *userPhoto;
@property (weak, nonatomic) IBOutlet UILabel *userName;
@property (weak, nonatomic) IBOutlet UILabel *userID;
@property (weak, nonatomic) IBOutlet UILabel *userPhoneNum;

@end

@implementation EditTopView

+ (instancetype)topView{
    
    return [[[NSBundle mainBundle]loadNibNamed:@"EditTopView" owner:nil options:nil]lastObject];
}


- (void)setUserInfo:(Users *)userInfo{
    
    _userInfo = userInfo;
    
    self.userName.text = userInfo.true_name;
    self.userID.text = [NSString stringWithFormat:@"%zd",[userInfo.user_id integerValue]];
    self.userPhoneNum.text = [NSString stringWithFormat:@"%zd",[userInfo.mobile_number integerValue]];
    
}

@end
